-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(operators): fix @return
docs
#5447
Conversation
I'm really sorry, I accidentally closed this PR. I still want it to be reviewed and considered for merging. |
I'm so sorry. I love the spirit of this PR, but I'm afraid I didn't notice it in time and there are conflicts because it's quite large. Also there's bound to be conflicts in #5729 if we merge this, and that has some very important work in it. If you have the time to do this work after #5729 lands, I'd love to see it. Otherwise, I'm so sorry, but I'll have to mark this as blocked. |
@benlesh Thanks for letting me know. I'd love to work on this one once again after #5729 is merged to master. I'll wait, rebase and ping you once I update this PR. Also, looks like #5729 is gonna remove lots of stuff (if not all) from my other PR: #5462. If you have time to take a look at it, maybe there are some commits that could still land to master after #5729 is merged. |
a1740f9
to
be75629
Compare
@benlesh, a friendly ping. |
A lot of that was old from when we were using ES doc. I've fixed a few as I had time but not many. They should be updated to have only what's necessary in them now that our docs site uses the TypeScript information. But you'll want to run it to check. |
I see. Thanks a lot @benlesh, I agree we should only have stuff that is used. I can check it (and possibly remove it) with my other PR that removes ES Docs stuff. |
Okay, now that things have settled down a bit, it's probably safer to update these if you want to give it a shot. If there's another PR you have that covers this one, I'll let you close this. |
ba94a10
to
15a7d42
Compare
@benlesh, updated. The other PR I mentioned here is not related to this one. I just wanted to let you know that if there are places in this PR where I have re-introduced |
15a7d42
to
74051bc
Compare
@benlesh I'm rebasing this third time 😄 I have now included newly added I've seen some of the operators having removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Rebased it and made a few minor changes. (It's all docs comments - no code changes - so I'm merging it.)
With this PR I'd like to fix the most operators' docs that were never fixed since pipeable operators were introduced. The old docs were pointing that operators were returning Observables which is not the case anymore. So I mostly added couple of words saying that operators are returning functions that return an Observable that does something.
I also fixed types that operator functions return, mostly from some
Observable
type to someOperatorFunction
type. The official docs are actually correctly inferring return type, but the sentences were not in compliance with the type (e.g.map
's#Returns
section).I also added couple of new
@return
and@name
for some of the operators that were missing them and I modified some@return
docs to better describe what returned Observables are doing.From the
src/internal/operators
folder, these files were left unchanged:publishBehavior.ts
publishReplay.ts
concat.ts
zipAll.ts
as they lack documentation.